package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.AdversimentsMapper;
import com.base.po.voip.Adversiments;
import com.base.po.voip.AdversimentsExample;
import com.base.service.AdversimentsService;
import org.springframework.stereotype.Service;

@Service("adversimentsService")
public class AdversimentsServiceImpl implements AdversimentsService {
	@Autowired
	private AdversimentsMapper adversimentsMapper;

	@Override
	public int countByExample(AdversimentsExample example) {
		return adversimentsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(AdversimentsExample example) {
		return adversimentsMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return adversimentsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Adversiments record) {
		return adversimentsMapper.insert(record);
	}

	@Override
	public int insertSelective(Adversiments record) {
		return adversimentsMapper.insertSelective(record);
	}

	@Override
	public List<Adversiments> selectByExample(AdversimentsExample example) {
		return adversimentsMapper.selectByExample(example);
	}

	@Override
	public Adversiments selectByPrimaryKey(String id) {
		if (id == null) {
			return null;
		}
		return adversimentsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Adversiments record, AdversimentsExample example) {
		return adversimentsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Adversiments record, AdversimentsExample example) {
		return adversimentsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Adversiments record) {
		return adversimentsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Adversiments record) {
		return adversimentsMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Adversiments> selectByAll(Adversiments record) {
		if (record.getParentid() == null) {
			return null;
		}
		return adversimentsMapper.selectByAll(record);
	}

}
